<%@page import="bean.portDTO"%>
<%@page import="bean.PortfolioVo"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>portView</title>
<link rel='stylesheet' href='/kiSunnyShop/css/Insertform.css'>
<script src='/kiSunnyShop/js/port.js'></script>
<style>
input {text-align:center;}
</style>
</head>
<body>
<%
	String sessionMid=(String)session.getAttribute("sessionMid");//object type라 형변한..sessionMid=null;java
/* 	sessionMid= "kkk"; */%>
<jsp:useBean id="vo" class="bean.PortfolioVo"/>
<jsp:setProperty property="*" name="vo"/>
<%	
	
	portDTO dto = new portDTO();
	dto.setVo(vo);	
	PortfolioVo v = dto.selectOne1();
%>
<div id="p_view">
<br/>
<form>
<ul>
<h1>[<%=v.getCate()%>]<%=v.getSubject() %></h1><br/>
<%if(session.getAttribute("sessionMid")!= null){ %>
<%if(session.getAttribute("sessionMid").equals("Sunny")){%>
<%-- 	 <img src='/kiSunnyShop/memberPhoto/<%=v.getPhoto()%>'><p/> --%>
	
<%-- 	<%=v.getContent()%><p/> --%>
<%-- 	작성자 : <%=v.getWriter()%><br/> --%>

<%-- 	작성날짜 : <%=v.getWdate()%><br/> --%>
<li><input type='button' value='삭제' id='btnDelete' class="btnStyle"/>
<input type='button' value='수정' id='btnModify' class="btnStyle">

<%} }%>


<%if(sessionMid ==null && v.getPhoto() ==null) {%>
<%}else if (sessionMid==null && v.getPhoto() !=null){%>
 <img src='/kiSunnyShop/memberPhoto/<%=v.getPhoto()%>'><p/>

<%=v.getContent()%><p/>
<li><label>작성자 :</label> <%=v.getWriter()%></li><br/>

<li><label>작성날짜 :</label> <%=v.getWdate()%></li><br/>

<%}else if(session.getAttribute("sessionMid") !="Sunny" && sessionMid !=null){%>
<div id="p_main"><div> <img src='/kiSunnyShop/memberPhoto/<%=v.getPhoto()%>'></div>
	<div>

	</div>
</div><p/>
	<%=v.getContent()%><p/>
	작성자 : <%=v.getWriter()%><br/>

	작성날짜 : <%=v.getWdate()%><br/>

<%}%>
<input type='button' value='목록으로' id='btnList' class="btnStyle"></li>
</ul>
</form>
</div>
<form id='portFrm' method="post">
	<input type='hidden' name='rno' value='<%=v.getRno()%>'>
	<input type='hidden' name='rno2' value='<%=vo.getRno()%>'>
	<input type='hidden' name='nowPage' value='<%=vo.getNowPage()%>'>
	<input type='hidden' name='find' value='<%=vo.getFind()%>'>
</form>
<%=vo.getNowPage() %>
<a href='index1.jsp?page=<%=vo.getNowPage() %>'>하하</a>
<script>portViewInit();</script>
</body>
</html>